{% extends 'base.html' %}
{% from 'macros.html' import form_field %}

<br>

{% block content %}
    <div class="page-header"><h1>注册账号</h1></div>
    <form action="{{ url_for('auth.register') }}" method="post">
        <div class="form-control" align="center">
            {{ form.csrf_token }}
        <div class="form-group">
            {{ form_field(form.username) }}
        </div>
                <div class="form-group">
            {{ form_field(form.email) }}
        </div>
                <div class="form-group">
            {{ form_field(form.password) }}
        </div>
            <div class="form-group">
            {{ form_field(form.password2) }}
        </div>

        <div class="form-group">
            {{ form.submit(class='btn btn-primary') }}
        </div>

        </div>
    </form>

{% endblock %}

{% block footer %}{% endblock %}